package juc.design.guardedObject.TestGuardedObject3;

import juc.Sleeper;

//保护性暂停——V3
public class Main {
    public static void main(String[] args) {
        for (int i = 0; i < 3; i++) {
            new People().start();
        }
        Sleeper.sleep(1);
        for (Integer id : Mailboxes.getIds()) {
            new Postman(id, "内容" + id).start();
        }
    }
}
